package cn.edu.sdjzu.xg.eagle.service;

import cn.edu.sdjzu.xg.eagle.entity.Pagination;
import cn.edu.sdjzu.xg.eagle.entity.Teacher;
import cn.edu.sdjzu.xg.eagle.exception.BysjException;
import cn.edu.sdjzu.xg.eagle.util.Condition;

import java.sql.SQLException;
import java.util.Collection;
import java.util.List;

public interface TeacherServiceInterface  {
    public boolean add(Teacher teacher) throws SQLException;
    public boolean delete(Teacher teacher) throws SQLException;
    public Collection<Teacher> findAll(List<Condition> conditionList)throws SQLException, BysjException;
    public Collection<Teacher>findAll(List<Condition> conditionList, Pagination pagination) throws BysjException, SQLException;
}

